import axiosApi from '../../AxiosApi.js'

export default {
    page (data) {
        return axiosApi({
            method: 'GET',
            url: `/web-base/base/truck/type/page`,
            formData: true,
            data
        })
    },
    save (data) {
        return axiosApi({
            method: 'POST',
            url: `/web-base/base/truck/type`,
            data
        })
    },
    update (id,data) {
        return axiosApi({
            method: 'PUT',
            url: `/web-base/base/truck/type/${id}`,
            data
        })
    },
    selGoodsByTruckTypeId (id) {
        return axiosApi({
            method: 'GET',
            url: `/web-base/base/truck/type/${id}`
        })
    }
}
